<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__ADMIN__/css/pintuer.css">
    <link rel="stylesheet" href="__ADMIN__/css/admin.css">
    <script src="__ADMIN__/js/jquery.js"></script>
    <script src="__ADMIN__/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="{:url('admin/banneritem/edi')}" enctype="multipart/form-data">

            <input type="hidden" name="id" value="{$list.id}" />

            <div class="form-group">
                <div class="label">
                    <label>广告位置：</label>
                </div>
                <div class="field">
                    <select name="banner_id" class="input w50">
                        <option value="">请选择分类</option>
                        {volist name="banner" id="bi"}
                        <option value="{$bi.id}"
                            {eq name="bi['id']" value="$list['banner_id']"}selected="selected"{/eq}
                        >{$bi.name}</option>
                        {/volist}
                    </select>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>图片展示：</label>
                </div>
                <div class="field">
                    <img src="/{$list.sm_pic}" style="width:200px;border-radius:6px;" />
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>修改图片：</label>
                </div>
                <div class="field">
                    <input type="file" class="button bg-blue margin-left" name="pic" id="image1" value="+ 浏览上传"  style="float:left;">
                    <div class="tipss">图片尺寸最好不低于：1024*800</div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>图片链接：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="{$list.link}" name="link"/>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>图片排序：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="order" value="{$list.order}"/>
                    <div class="tips">图片排序数字较小的在前</div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>图片状态：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                    应用 <input name="status" value="1" type="radio"
                        {eq name="$list.status" value="应用"}checked="checked"{/eq}
                    />
                    禁用 <input name="status" value="2" type="radio"
                        {eq name="$list.status" value="禁用"}checked="checked"{/eq}
                    />
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>图片介绍：</label>
                </div>
                <div class="field">
                    <textarea class="input" name="pic_desc" style=" height:90px;">{$list.pic_desc}</textarea>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body></html>